package com.magicsoft.app.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class BonusEntity implements Parcelable {

	/**
	 * 年月
	 */
	String date;
	
	String year;
	String month;
	
	/**
	 * 总额
	 */
	String totalBonus;
	
	/**
	 * 奖励
	 */
	String increase;
	
	/**
	 * 扣款
	 */
	String decrease;
	
	String id;
	
	public BonusEntity() {
		date = "";
		year = "";
		month = "";
		totalBonus = "";
		increase = "";
		decrease = "";
		id = "";
	}
	
	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public String getTotalBonus() {
		return totalBonus;
	}

	public void setTotalBonus(String totalBonus) {
		this.totalBonus = totalBonus;
	}

	public String getIncrease() {
		return increase;
	}

	public void setIncrease(String increase) {
		this.increase = increase;
	}

	public String getDecrease() {
		return decrease;
	}

	public void setDecrease(String decrease) {
		this.decrease = decrease;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(date);
		dest.writeString(year);
		dest.writeString(month);
		dest.writeString(totalBonus);
		dest.writeString(increase);
		dest.writeString(decrease);
		dest.writeString(id);
	}

	private BonusEntity(Parcel in) {
		date = in.readString();
		year = in.readString();
		month = in.readString();
		totalBonus = in.readString();
		increase = in.readString();
		decrease = in.readString();;
		id = in.readString();
	}
	
	public static final Creator<BonusEntity> CREATOR = new Creator<BonusEntity>() {

		@Override
		public BonusEntity createFromParcel(Parcel source) {
			return new BonusEntity(source);
		}

		@Override
		public BonusEntity[] newArray(int size) {
			return new BonusEntity[size];
		}
	};
}
